package com.monitor.core.config;

import com.monitor.core.util.PropertiesUtil;

import java.util.Properties;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/4/26 10:56
 * @Description:
 */
public class RabbitConfig {

    private static Properties properties = PropertiesUtil.loadProperties(RabbitConfig.class, "/rabbitmq/rabbitmq-config.properties");

    public static String QUEUE;

    public static String QUEUEKEY;

    public static String EXCHANGE;

    static {
        QUEUE = properties.getProperty("mq.queue");
        QUEUEKEY = properties.getProperty("mq.queuekey");
        EXCHANGE = properties.getProperty("mq.exchange");
    }
}
